<?php

use App\Http\Controllers\Api\V1\PageController;
use App\Http\Controllers\Web\ArticleController;
use Illuminate\Support\Facades\Route;
use Laravel\Horizon\Horizon;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


Route::get('/delete-cache', [PageController::class,'deleteCache']);

Horizon::auth(function ($request) {
    return true; // false;
});
Route::get("article/{url}", [ArticleController::class,'article'])->name('article');


Route::get("c-service", function (){
    return view('customer-service');
});
